
INCLUDES = -I ../include

CC       = gcc
CFLAGS   = -Wall -g

AR       = ar
ARFLAGS  = -rc 
RANLIB   = ranlib

OBJS     = pstrace.o
LIB	 = pstrace.a

%.o: %.c
	$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@

all: lib

lib: $(OBJS)
	$(AR) $(ARFLAGS) $(LIB) $(OBJS)
	$(RANLIB) $(LIB)

clean:
	rm -f $(LIB) $(OBJS)